/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2019
 */

package com.jzwl.site.manager.tradingareainfo.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jzwl.common.page.PageObject;
import com.jzwl.site.manager.tradingareainfo.dao.TradingAreaInfoDao;

@Service("tradingAreaInfoService")
public class TradingAreaInfoService {

	@Autowired
	private TradingAreaInfoDao tradingAreaInfoDao;

	public boolean addTradingAreaInfo(Map<String, Object> map) {

		return tradingAreaInfoDao.addTradingAreaInfo(map);

	}

	public PageObject queryTradingAreaInfoList(Map<String, Object> map) {
		map.put("isDelete", 0);
		return tradingAreaInfoDao.queryTradingAreaInfoList(map);

	}

	public List queryList(Map<String, Object> map) {
		map.put("isDelete", 0);
		return tradingAreaInfoDao.queryList(map);

	}

	public boolean updateTradingAreaInfo(Map<String, Object> map) {

		return tradingAreaInfoDao.updateTradingAreaInfo(map);

	}

	public boolean deleteTradingAreaInfo(Map<String, Object> map) {

		return tradingAreaInfoDao.deleteTradingAreaInfo(map);

	}

	@SuppressWarnings("unchecked")
	public Map<String, Object> getById(Map<String, Object> map) {

		return tradingAreaInfoDao.getById(map);

	}

}
